package com.example.bookshop.repository;


import com.example.bookshop.entity.GoodsPhoto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsPhotoRepository {
    public int addGoodsPhoto(GoodsPhoto goodsPhoto);//添加图片
    public List<GoodsPhoto> findGoodsPhotoByGoodsId(Integer goodsId);//通过商品编号查询图片
    public int deleteGoodsPhotoByGoodsId(Integer goodsId);//通过商品编号删除图片
    public int deleteGoodsPhotoById(Integer id);//图片编号删除图片
}
